package Java8实战._1_Lambda._5_定义接口对选择建模;

import Java8实战._1_Lambda.Apple;

public class AppleSimpleFormatter implements AppleFormatter{
    @Override
    public String accept(Apple apple) {
        return "An apple of " + apple.getWeight() + "g";
    }
}
